﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace SoftHotel.Models
{
    public class Proveedor
    {
        [Key]
        public int idProveedor{ get; set; }
        [Required(ErrorMessage = "Campo Requerido")]
        public string razonSocial { get; set; }
        [Required(ErrorMessage = "Campo Requerido")]
        public string ruc { get; set; }
        [Required(ErrorMessage = "Campo Requerido")]
        public string direccion { get; set; }
        [Required(ErrorMessage = "Campo Requerido")]
        public string email { get; set; }
        [Required(ErrorMessage = "Campo Requerido")]
        public string telefono { get; set; }
        [Required(ErrorMessage = "Campo Requerido")]
        public string movil { get; set; }
        
        public int estado { get; set; }
        [Required(ErrorMessage = "Campo Requerido")]
        public string representante { get; set; }
        [Required(ErrorMessage = "Campo Requerido")]
        public string dniRepresentante { get; set; }
        public DateTime fechaRegistro { get; set; }
        [ForeignKey("estado")]
        public Parametro objEstado { get; set; }

        /*public string idProveedor { get; set; }
        [Required(ErrorMessage="Ingrese razon social")]
        public string razon { get; set; }
        [Required(ErrorMessage = "Ingrese ruc")]
        public string ruc { get; set; }
        [Required(ErrorMessage = "Ingrese ruc")]
        public string dir { get; set; }
        [Required(ErrorMessage = "Ingrese ruc")]   
        public string mail { get; set; }
        [Required(ErrorMessage = "Ingrese ruc")]
        public string fono { get; set; }
        
        public string fechaRegistro { get; set; } //se necesita un calendario =S
        [Required(ErrorMessage = "Ingrese ruc")]
        public string representante { get; set; }
        [Required(ErrorMessage = "Ingrese ruc")]
        public string dni { get; set; }
        [Required(ErrorMessage = "Ingrese ruc")]
        public string celular { get; set; }
        [Required(ErrorMessage = "Ingrese ruc")]
        public string estado { get; set; } */
    }
}